package com.study.hash;

import java.util.HashMap;

public class HashTest {

    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>(4);


        /**
         *
         * 4    3
         * 8    6
         * 16   12
         * 32   24
         * 64   48
         *128   96
         */
        for (int i = 0; i < 65; i++) {
            long l = System.nanoTime();
            String key = "" + i;
            map.put(key, key);
            System.out.println(i + " : " + (System.nanoTime() - l));
        }
    }
}
